.filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--cui-spacings-giga);
  padding: var(--cui-spacings-kilo) 0 var(--cui-spacings-kilo) 0;
  margin: var(--cui-spacings-giga) 0 var(--cui-spacings-tera) 0;
  background-color: var(--cui-bg-normal);
  border: none;
}

@media (min-width: 500px) {
  .filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 750px) {
  .filters {
    position: sticky;
    top: 0;
    z-index: 1;
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .filters::after {
    position: absolute;
    top: 100%;
    display: block;
    width: 100%;
    height: var(--cui-spacings-kilo);
    content: "";
    background: linear-gradient(var(--cui-bg-normal), transparent);
  }
}

.category {
  margin-bottom: var(--cui-spacings-tera);
}

.list {
  display: flex;
  flex-wrap: wrap;
}

.wrapper {
  position: relative;
  width: 7.5rem;
  padding-bottom: var(--cui-spacings-tera);
  margin-top: var(--cui-spacings-mega);
  text-align: center;
}

.size {
  display: block;
  font-style: italic;
  color: var(--cui-fg-subtle);
}

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px; /* max icon height */
}

.one-x {
  height: 48px; /* 1 × 48px (max icon height) */
}

.two-x {
  height: 96px; /* 2 × 48px (max icon height) */
}

.two-x .icon {
  transform: scale(2);
}

.icon {
  max-width: 3rem;
}

.label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--cui-body-s-font-size);
  line-height: var(--cui-body-s-line-height);
  white-space: nowrap;
}

.badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
}

.actions {
  position: absolute;
  right: 50%;
  bottom: 0;
  display: none;
  transform: translateX(50%);
}

.wrapper:hover .actions {
  display: flex;
}
